package org.voyager.service.front.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.voyager.common.beans.JsonResult;
import org.voyager.service.front.VO.AdResourceVo;
import org.voyager.service.front.subsystem.AdClient;

@RestController
@RequestMapping("/ad")
public class AdController {

	@Autowired
	private AdClient adClient;
	
	@PostMapping("/resource/list")
	public JsonResult list(@RequestBody AdResourceVo adResourceVo) {
		return adClient.queryAds(adResourceVo);
	}
	
}
